import Vue from 'vue'
import VueRouter from 'Vue-router'

Vue.use(VueRouter)

import HomeContainer from '../components/layout/HomeContainer.vue'
import MemberContainer from '../components/layout/MemberContainer.vue'
import SearchContainer from '../components/layout/SearchContainer.vue'
import ShopcarContainer from '../components/layout/ShopcarContainer.vue'
import NewList from '../components/news/NewList.vue'
import NewInfo from '../components/news/NewInfo.vue'




var router = new VueRouter({
    routes: [
        { path: '/', component: HomeContainer },
        { path: '/home', component: HomeContainer },
        { path: '/Member', component: MemberContainer },
        { path: '/Search', component: SearchContainer },
        { path: '/Shopcar', component: ShopcarContainer },
        { path: '/home/NewList', component: NewList },
        { path: '/home/NewInfo/:id', component: NewInfo },
    ],
    linkActiveClass: 'mui-active'
})

export default router;